home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / ada / c01oop.zip / CPPWKBK / CPPV2-3.CPP < prev    next >
C/C++ Source or Header  |  1992-08-25  |  312b  |  16 lines

  1. #define HEADER "C++ Problem 2.3 by Rick Conn using Borland C++"
  2.  
  3. #include <stdio.h>
  4.  
  5. const array_size = 8;
  6.  
  7. void main(void)
  8. {
  9.   printf("%s\n", HEADER);
  10.  
  11.   int iarray[array_size];
  12.  
  13.   printf("The size  of the array is %d\n", sizeof iarray);
  14.   printf("The value of the const is %d\n", array_size);
  15. }
  16.